package com.bysc.joinservice.client;

import com.bysc.commonutils.Results;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component

@FeignClient(value = "service-cms",fallback = CmsDegradeFeignClient.class)

public interface CmsClient {

    @ApiOperation("根据id查找活动")
    @GetMapping("/cmsservice/cms-activity/queryActivityById/{id}")
    public Results queryActivityById(@PathVariable String id);

}